/*--------------------------------------------------------------
 * File: dem015.c 编码类型：C语言  UTF-8
 * Author WRS (1352509846@qq.com)
 * 功能: 判断元音辅音，英语有26个字母，元音只包括 a、e、i、o、u 这五个字母，其余的都为辅音
 * Version 0.1
 * Date 2021-12-26 
 * 
 * @copyright Copyright (c) 2021
 * 
----------------------------------------------------------------*/
#include <stdio.h>

int main(int argc, char const *argv[])
{
    char c;
    int isLowercaseVowel, isUppercaseVowel;

    printf("请输入一个字母：");
    scanf("%c",&c);

    isLowercaseVowel = (c == 'a' || c == 'e' ||c == 'i' ||c == 'o' ||c == 'u' );
    isUppercaseVowel = (c == 'A' || c == 'E' ||c == 'I' ||c == 'O' ||c == 'U' );
    if(isLowercaseVowel || isUppercaseVowel)
    {
        printf("%c 是元音",c);
    }
    else
    {
        printf("%c 是辅音",c);   
    }
    return 0;
}



